exports.notEmpty = name => v =>
  !v || v.trim() === '' ? `${name} 不能为空` : true
